﻿using com.iot.core.annotation;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Xml.Linq;

namespace com.iot.core.data.entity
{
    [Schema(Name = "异常表", Description = "")]     
    public class HtError : BaseEntity
    {





        [Comment("请求Host")]
        [Schema(Name = "请求Host", Description = "")]
        [MaxLength(50)]
        public string Host { get; set; } = "";


        [Comment("请求Host")]
        [Schema(Name = "请求Host", Description = "")]
        [MaxLength(50)]
        public string Url { get; set; } = "";


        [Comment("操作")]
        [Schema(Name = "操作", Description = "")]
        [MaxLength(200)]
        public string Memo { get; set; } = "";


        [Comment("关联ID")]
        [Schema(Name = "关联ID", Description = "")]
        [MaxLength(50)]
        public string Glid { get; set; } = "";


        [Comment("参数")]
        [Schema(Name = "参数", Description = "")]
        public string Pin { get; set; } = "";


        [Comment("错误类名")]
        [Schema(Name = "错误类名", Description = "")]
        [MaxLength(50)]
        public string ExClsname { get; set; } = "";


        [Comment("错误信息")]
        [Schema(Name = "错误信息", Description = "")]
        [MaxLength(200)]
        public string ExMsg { get; set; } = "";


        [Comment("错误详细信息")]
        [Schema(Name = "错误详细信息", Description = "")]
        public string ExFullmsg { get; set; } = "";


        [Comment("平台编号")]
        [Schema(Name = "平台编号", Description = "")]
        public long HtplatId { get; set; }


        [Comment("IP")]
        [Schema(Name = "IP", Description = "")]
        [MaxLength(50)]
        public string Ip { get; set; } = "";


        [Comment("浏览器")]
        [Schema(Name = "浏览器", Description = "")]
        [MaxLength(50)]
        public string Browser { get; set; } = "";


        [Comment("App版本")]
        [Schema(Name = "App版本", Description = "")]
        [MaxLength(20)]
        public string Appver { get; set; } = "";


        [Comment("姓名")]
        [Schema(Name = "姓名", Description = "")]
        [MaxLength(50)]
        public string Name { get; set; } = "";


        [Comment("机构编码")]
        [Schema(Name = "机构编码", Description = "")]
        public long HtdeptId { get; set; }


        [Comment("登录编号")]
        [Schema(Name = "登录编号", Description = "")]
        public long HtuserloginId { get; set; }


        [Comment("机构名称")]
        [Schema(Name = "机构名称", Description = "")]
        [MaxLength(100)]
        public string HtdeptName { get; set; } = "";


        [Comment("创建日期")]
        [Schema(Name = "创建日期", Description = "")]
        public DateTime CrtDt { get; set; }


        [Comment("用户编号")]
        [Schema(Name = "用户编号", Description = "")]
        public long CrtUid { get; set; }


        [Comment("机构编号")]
        [Schema(Name = "机构编号", Description = "")]
        public long CrtDid { get; set; }

    }
}
